package com.atguigu.vodservice.util;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @title: VideoProperties
 * @Author danghailiang
 * @Date: 2022/9/30 1:01
 * @Version 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.vod.file")
public class VideoProperties implements InitializingBean {

    /**
     * 阿里云keyId
     */
    private String keyid;
    /**
     * 阿里云keysecret
     */
    private String keysecret;

    public static   String ACCESS_KEY_ID;
    public static   String ACCESS_KEY_SECRET;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = keyid;
        ACCESS_KEY_SECRET = keysecret;
    }
}
